package com.wx.entity;

import com.wx.common.BaseEntity;
import io.swagger.annotations.ApiModel;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Table;
import javax.validation.constraints.NotEmpty;
import java.io.Serializable;

@Data
@Table(name = "sys_role")
@ApiModel(value = "sysRole")
public class SysRole extends BaseEntity implements Serializable {

    private static final long serialVersionUID = -3034820223936073111L;
    /**
     * 角色编码
     */
    @Column(name = "role_code")
    private String roleCode;

    /**
     * 角色名称
     */
    @Column(name = "role_name")
    @NotEmpty(message = "角色名称不能为空")
    private String roleName;

    /**
     * 状态
     */
    @Column(name = "status")
    private String status;

}